package com.person.consumerhystrix.feignclient;

import com.person.common.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "CLOUDPROVIDERHYSTRIXPAYMENT8001",fallback = PaymentHystrixFeignClientImpl.class)
public interface PaymentHystrixFeignClient {
    @GetMapping("/peyment/hystrix/ok/{id}")
    public CommonResult payment_ok(@PathVariable("id") Integer id);


    @GetMapping("/payment/hystrix/timeout/{id}")
    public CommonResult payment_timeout(@PathVariable("id") Integer id);

}
